package com.bangyu.monitor.modular.system.mapper;

import cn.stylefeng.roses.core.datascope.DataScope;
import com.bangyu.monitor.modular.system.entity.MaintainRecord;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

/**
 * @Auther: zhangxue
 * @Date: 19/4/8 16:08
 * @Description:
 */
@Repository
public interface MaintainRecordMapper extends BaseMapper<MaintainRecord> {

    List<MaintainRecord> getByBridgeId(@Param("bridgeId") Long bridgeId);

    Page<Map<String, Object>> pageAll(@Param("page") Page page, @Param("bridgeName") String bridgeName);

    Integer bridgeCountOfMaintain(@Param("bridgeIds") List<Long> bridgeIds,@Param("startDate") Integer startDate,@Param("endDate") Integer endDate);

}
